package cn.thr.ymcc.service.impl;

import cn.thr.ymcc.domain.Teacher;
import cn.thr.ymcc.mapper.TeacherMapper;
import cn.thr.ymcc.service.ITeacherService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 老师表 服务实现类
 * </p>
 *
 * @author thr
 * @since 2023-02-28
 */
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements ITeacherService {
    /**
     * 通过课程id查询课程的讲师信息
     * @param courseId
     * @return
     */
    @Override
    public List<Teacher> loadByCourseId(Long courseId) {
        return baseMapper.loadByCourseId(courseId);
    }
}
